@extends('Home.bbs.layout')
<script type="text/javascript" charset="utf-8" src="{{asset('/bootcss/UTF/ueditor.config.js')}}"></script>
<script type="text/javascript" charset="utf-8" src="{{asset('/bootcss/UTF/ueditor.all.min.js')}}"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="{{asset('/bootcss/UTF/lang/zh-cn/zh-cn.js')}}"></script>
@section('lunbo')
@endsection
@section('zhuti')
<!-- 首页>板块类型 -->
<div id="pt" class="bm cl">
	<div class="z">
		<a href="{{url('/home/bbs/index')}}" class="nvhm" title="首页"></a><em>»</em><a href="/home/bbs/index">首页</a> <em>›</em><span>{{$tname}}</span>
	</div>
</div>
<!-- 板块帖子列表 -->
<div>
	<form action="{{url('/home/post/insert')}}" method="post">{{csrf_field()}}
		<div>
			<span>标题:</span>
			<input type="text" name='title'>
			<input type="hidden" name='tid' value="{{$types->id}}">
			<input type="hidden" name="uid" value="{{session('userid')}}">
		</div>
	
		<div>
            <script id="editor" type="text/plain" style="display:block;width:100%;height:400px;" name="content"></script>
            <script>
                var ue = UE.getEditor('editor');
            </script>
        </div>

        <div>
        	<button type="submit" style="width: 100px;height:30px;font-size: 14px;">发表帖子</button>               	
        </div>


	</form>


</div>
@endsection
@section('guanzhuyouqing')
@endsection